home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / usr_-_Usr_Files / INCLUDE / SCHED.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  43 lines

  1. #ifndef _SCHED_H
  2. #define _SCHED_H
  3.  
  4. /*
  5.  *   Header file <sched.h> specified by IEEE Std 1003.1b-1993
  6.  *   in section 13 (execution scheduling).
  7.  *
  8.  *   (C) Markus Kuhn, 1996
  9.  *
  10.  */
  11.  
  12. #include <features.h>
  13. #include <sys/types.h>
  14. #include <sys/time.h>
  15.  
  16. #define SCHED_OTHER    0
  17. #define SCHED_FIFO     1
  18. #define SCHED_RR       2
  19.  
  20. struct sched_param
  21. {
  22.   int sched_priority;     /* Process execution scheduling priority */
  23. };
  24.  
  25. __BEGIN_DECLS
  26.  
  27. extern int sched_setparam __P((pid_t __pid,
  28.         const struct sched_param *__param));
  29. extern int sched_getparam __P((pid_t __pid,
  30.         struct sched_param *__param));
  31. extern int sched_setscheduler __P((pid_t __pid, int __policy,
  32.     const struct sched_param *__param));
  33. extern int sched_getscheduler __P((pid_t __pid));
  34. extern int sched_yield __P((void));
  35. extern int sched_get_priority_max __P((int __policy));
  36. extern int sched_get_priority_min __P((int __policy));
  37. extern int sched_rr_get_interval __P((pid_t __pid,
  38.         struct timespec *interval));
  39.  
  40. __END_DECLS
  41.  
  42. #endif /* _SCHED_H */
  43.